<template>
	<view class="agreement-confirm-main-box">
		<view class="agreement-confirm-box">
			<view class="title">断浪中文签约结果查询</view>
			<view class="content">
				<slot name="text"></slot>
			</view>

			<view :class="getClassByType" @click="okHandler">签约查询</view>
			<view class="cancel-btn" @click="cancelHandler">取消</view>
		</view>
	</view>
</template>
<script>
	export default {
		props: {
			bgType: {
				type: String,
				default: 'submit-btn-wx'
			}
		},
		computed: {
			getClassByType() {
				if (this.bgType === 'zfb') {
					return 'submit-btn-zfb';
				} else if (this.bgType === 'wx') {
					return 'submit-btn-wx';
				} else {
					return 'submit-btn-wx'; // 或者返回其他默认类或基于其他条件的类
				}
			}

		},
		methods: {
			showAgreementHandler(value) {
				this.$emit('showAgreement', value);
			},
			gotoWebUrl(pagePath) {
				window.location.href = pagePath;
			},
			okHandler() {
				this.$emit('ok');
			},
			cancelHandler() {
				this.$emit('cancel');
			}
		}
	};
</script>

<style lang="scss" scoped>
	.agreement-confirm-main-box {
		position: fixed;
		left: 0;
		top: 0;
		width: 100vw;
		height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
		background: url("https://qiming-1308147483.cos.ap-chengdu.myqcloud.com/doc%2Fpinzhi_shenghuo_huiyuan_quanyi%2Fcommon%2Flogin-shadow-bg.png") repeat;
		z-index: 2;

		.agreement-confirm-box {
			border-radius: 20rpx;
			background-color: #faf7f2;
			padding: 30rpx;
			width: 80%;
			box-sizing: border-box;
			padding: 63rpx 58rpx 38rpx;

			.title {
				font-size: 36rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #000000;
				text-align: center;
			}

			.content {
				font-size: 28rpx;
				font-family: Source Han Sans CN;
				color: #000000;
				text-align: justify;
				margin-top: 61rpx;
				line-height: 45rpx;

				.tip {
					color: #037EFD;
				}

			}

			.submit-btn-zfb {
				height: 110rpx;
				// line-height: 110rpx;
				background: linear-gradient(90deg, #5069FA 0%, #568BF1 100%);
				border-radius: 55rpx;
				margin-top: 52rpx;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #FFFFFF;
				text-align: center;
				display: flex;
				justify-content: center;
				align-items: center;
			}

			.submit-btn-wx {
				height: 110rpx;
				// line-height: 110rpx;
				background-color: #1AAD19;
				border-radius: 55rpx;
				margin-top: 52rpx;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #FFFFFF;
				text-align: center;
				display: flex;
				justify-content: center;
				align-items: center;
			}

			.cancel-btn {
				text-align: center;
				margin-top: 36rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #999999;
			}
		}
	}
</style>